home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
nt
/
source.exe
/
POSIX
/
SH
/
STD
/
STDC
/
MEMCHR.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-07-13
|
225b
|
20 lines
/* $Header$ */
#include <string.h>
Void *
memchr(ap, c, n)
Const Void *ap;
register int c;
register size_t n;
{
register char *p = ap;
if (n++ > 0)
while (--n > 0)
if (*p++ == c)
return --p;
return NULL;
}